#include "Camera.h"

//define button states if there is no glut library
#ifndef GLUT_LEFT_BUTTON
#define GLUT_LEFT_BUTTON		0
#endif

#ifndef GLUT_MIDDLE_BUTTON
#define GLUT_MIDDLE_BUTTON		1
#endif

#ifndef GLUT_RIGHT_BUTTON
#define GLUT_RIGHT_BUTTON		2
#endif

#ifndef GLUT_DOWN
#define GLUT_DOWN			0
#endif

#ifndef GLUT_UP
#define GLUT_UP				1
#endif


class Targeter{
	public:
		void init(Camera* pCam);
		void mouseDrag(int x, int y);
		void mouseMove(int x, int y);
		Vec3f mouseClick(int button, int state, int x, int y);
		void drawTargetSys(Vec3f shooter);

	private:
		
		Camera* cam;
		int t_but;
		int old_x, old_y;
		float t_roty, t_rotx;
		GLdouble tpx, tpy, tpz;
		float trg_s;
		float ts_a;

};